package cn.yl.course.server.entity;

import cn.yl.api.server.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 活动课程表
 * </p>
 *
 * @author yl
 * @since 2022-04-22
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("activity_course")
@ApiModel(value = "ActivityCourse对象", description = "活动课程表")
public class ActivityCourse extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("课程ID")
    @TableField("course_id")
    private Integer courseId;

    @ApiModelProperty("活动开始时间")
    @TableField("begin_time")
    private LocalDateTime beginTime;

    @ApiModelProperty("活动结束时间")
    @TableField("end_time")
    private LocalDateTime endTime;

    @ApiModelProperty("活动价格")
    @TableField("amount")
    private Double amount;

    @ApiModelProperty("库存值")
    @TableField("stock")
    private Integer stock;

    @ApiModelProperty("状态 0未上架 10已上架")
    @TableField("status")
    private Integer status;

    @ApiModelProperty("逻辑删除 0未删除 1删除")
    @TableField("is_del")
    @TableLogic
    private Boolean del;

    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty("创建人")
    @TableField("create_user")
    private String createUser;

    @ApiModelProperty("更新人")
    @TableField("update_user")
    private String updateUser;


}
